<script lang="ts" setup>
import { Delete } from '@element-plus/icons-vue';
import { props,Emits } from '../props';
const { deleteRow } = defineProps(props);
const emit=defineEmits<Emits>()
const confirmEvent=(row:any)=>{
    emit('confirmEvent',row)
}
</script>
<template>
    <el-popconfirm width="200px" :title="$t(`title.confirmDelete`)" @confirm="confirmEvent(deleteRow)">
        <template #reference>
            <el-button type="danger" link :icon="Delete">{{ $t(`button.delete`) }}</el-button>
        </template>
    </el-popconfirm>
</template>
